package com.exartisan.util;


public class DateTimeFormat {
	
	public static final int LONG_VALUE = 1; 
	public static final int SHORT_VALUE = 0; 
	
	public static String format(String raw, int type){	
		String date = raw.substring(0, raw.indexOf("T"));
		String dateValues[] = date.split("-");
		String dateValue = dateValues[2]+"/"+dateValues[1]+"/"+dateValues[0];
		String time = raw.substring(raw.indexOf("T")+1);
		String timeValues[] = time.split(":");
		String timeValue = timeValues[2]+"h:"+timeValues[1];
	    if(type == 0)
	    	return dateValue;
	    else return timeValue+" "+dateValue;
	}
}
